
{% for p in posts.items%}
<div class="media">
    <div class="media-left">
        <a href="#">
            <img class="media-object" src="{{p.author.avatar_img}}" alt="avatar" width="64px">
        </a>
    </div>
    <div class="media-body">
        <a href="{{url_for('user_page',username=p.author.username)}}">
            <h4 class="media-heading">{{p.author.username}}</h4>
        </a>
        <small class="text-muted">{{p.timestamp}}</small>
        <p> {{p.body}}</p>
    </div>
</div>
{%endfor%}
